home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 February / Chip_2002-02_cd1.bin / tema / mgedata / muz.swf / scripts / DefineButton2_13 / BUTTONCONDACTION on(release).as
Text File  |  2001-10-15  |  448b  |  23 lines

  1. on(release){
  2.    if(action eq "pause")
  3.    {
  4.       action = "play";
  5.       status = "playing tr. " add playtrack;
  6.       tellTarget("tracks")
  7.       {
  8.          gotoAndStop("track" add eval("../:playtrack"));
  9.       }
  10.       play();
  11.    }
  12.    else if(action eq "play")
  13.    {
  14.       action = "pause";
  15.       status = "paused tr. " add playtrack;
  16.       tellTarget("tracks")
  17.       {
  18.          gotoAndStop("stop");
  19.       }
  20.       stop();
  21.    }
  22. }
  23.